<section class="title">
<?php if ($this->method == 'create'): ?>
	<?php $readonly = '';?>
	<h4><?php echo lang('escort_listing_place_create_title'); ?></h4>
<?php else: ?>
	<?php $readonly = 'readonly="readonly"';?>
	<h4><?php echo sprintf(lang('escort_listing_place_edit_title')); ?></h4>
<?php endif; ?>
</section>

<section class="item">
	
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<div class="form_inputs" id="news-form">

	<fieldset>
	
		<ul>
			<li class="even">
				<label for="country_id"><?php echo lang('escort_listing_place_country_label'); ?> <span>*</span></label>
				<div class="input">
					<?php echo form_dropdown('country_id', array('0' => lang('escort_listing_place_all_country_label')) + getCountryData_ioc(), $listingPlace->country_id, 'id="country_1" class="country_select"'); ?>
				</div>				
			</li>
			<li class="odd">
				<label for="state_id"><?php echo lang('escort_listing_place_state_label'); ?></label>
				<div class="input">					
					<?php echo form_dropdown('state_id', array('0' => lang('escort_listing_place_all_state_label')) + getStateData_ioc($listingPlace->country_id), $listingPlace->state_id, 'id="state_country_1" class="state_select"') ?>
				</div>
			</li>
			<li class="even">
				<label for="province_id"><?php echo lang('escort_listing_place_province_label'); ?></label>
				<div class="input">
					<?php echo form_dropdown('province_id', array('0' => lang('escort_listing_place_all_province_label')) + getProvinceData_ioc($listingPlace->country_id, $listingPlace->state_id), $listingPlace->province_id, 'id="province_state_country_1" class="provice_select"')?>
				</div>
			</li>
			<li class="even">
				<label for="city_id"><?php echo lang('escort_listing_place_city_label'); ?></label>
				<div class="input">
					<?php echo form_dropdown('city_id', array('0' => lang('escort_listing_place_all_city_label')) + getCityData_ioc($listingPlace->country_id, $listingPlace->state_id, $listingPlace->province_id), $listingPlace->city_id, 'id="city_state_country_1" class="city_select"')?>
				</div>
			</li>
			<li class="even">
				<label for="price"><?php echo lang('escort_listing_place_price_label'); ?></label>
				<div class="input">
					<?php echo form_input('price', $listingPlace->price)?>
				</div>
			</li>
		</ul>
	</fieldset>
</div>
<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel'))); ?>
</div>
<?php echo form_close(); ?>
</section>